package org.light.framework.mvc;

import java.util.*;

/**
 * 向客户端返回视图对象
 * 
 * @author de.cel
 *
 */
public class View {

	private String path;

	private Map<String, Object> model;

	public View(String path) {
		this.path = path;
		model = new HashMap<String, Object>();
	}

	public View addModel(String key, Object value) {
		model.put(key, value);
		return this;
	}

	public String getPath() {
		return path;
	}

	public Map<String, Object> getModel() {
		return model;
	}
}
